import request from '@/utils/request'

// 新增充电桩
export function addRepairRecord(repairRecord) {
  return request({
    url: '/repair-record/addRepairRecord',
    method: 'post',
    data: repairRecord
  })
}

// 修改充电桩
export function updateRepairRecord(repairRecordUpdateDto) {
  return request({
    url: '/repair-record/updateRepairRecord',
    method: 'post',
    data: repairRecordUpdateDto
  })
}

// 查询list
export function listRepairRecord(query) {
  return request({
    url: '/repair-record/listRepairRecord',
    method: 'get',
    params: query
  })
}
